<?php
namespace app\index\validate;

use think\Validate;

class Login extends Validate
{
    protected $rule = [
        ['tel', 'require|length:11|number','电话不能为空|电话长度必须是11位|必须是数字'],
        ['pwd', 'require', '密码不能为空'],
    ];

}